/*路由*/
import Vue from 'vue'
import Login from "../components/Login";
import Router from 'vue-router'
import Layout from "../components/Layout";
import JVM from "../components/JVM";
import Redis from "../components/Redis";
import Cache from "../components/Cache"


Vue.use(Router);

export default new Router({
    mode:'history',
    routes:[
        {
            path: '/',
            name: 'root',
            components:{
                main: Login
            }
        },
        {
            path: '/main',
            name: 'main',
            components:{
                main: Layout
            },
            children:[
                {
                    path:'jvm',
                    name:'jvm',
                    components:{
                        cmain:JVM
                    }
                },
                {
                    path:'redis',
                    name:'redis',
                    components:{
                        cmain:Redis
                    }
                },
                {
                    path:'cache',
                    name:'cache',
                    components:{
                        cmain:Cache
                    }
                }
            ]
        }
    ]
})